import logging
def log_connect1():
    logging.basicConfig(filename="./log/dianyinglog.txt",
                        filemode="w",
                        level=logging.DEBUG,
                        format="%(lineno)d***%(message)s***%(asctime)s***%(levelname)s"
                        )